Scriptname THGLPlayerScript extends ReferenceAlias  

THGLQuestScript Property THGLQS Auto Conditional
Armor Property pThGlove Auto Conditional
Quest Property pTHGLQuest Auto Conditional

Event OnInit()

	AddInventoryEventFilter(pThGlove)

endEvent

Event OnItemAdded(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akSourceContainer)

	if pTHGLQuest.GetStageDone(20) == 1
		if akBaseItem == pThGlove
			pTHGLQS.GlovesCounted()
		endif
	endif

endEvent

Event OnItemRemoved(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akDestContainer)

	if pTHGLQuest.GetStageDone(20) == 1
		if akBaseItem == pThGlove
			pTHGLQS.GlovesCounted()
		endif
	endif

endEvent
